import service from '../utils/request'

export const getNodeMetrics = (data) => {
  return service({
    url: "/api/metric/nodemetrics",
    method: 'get',
    data
  })
}

export const getXyMetrics = (data) => {
  return service({
    url: "/api/metric/xymetrics",
    method: 'get',
    data
  })
}

export const getOyMetrics = (data) => {
  return service({
    url: "/api/metric/odmetrics",
    method: 'get',
    data
  })
}

export const getGraphXyMetrics = (data) => {
  return service({
    url: "/api/metric/graphxymetrics",
    method: 'get',
    data
  })
}

export const getXyRelease = (data) => {
  return service({
    url: "/api/metric/xyrelease",
    method: 'get',
    data
  })
}

export const getXyOnline = (data) => {
  return service({
    url: "/api/metric/xyonline",
    method: 'get',
    data
  })
}

export const getxyDayuv = (data) => {
  return service({
    url: "/api/metric/xyDayuv",
    method: 'get',
    data
  })
}

export const getxyDaypv = (data) => {
  return service({
    url: "/api/metric/xyDaypv",
    method: 'get',
    data
  })
}

export const getxyHouruv = (data) => {
  return service({
    url: "/api/metric/xyHouruv",
    method: 'get',
    data
  })
}

export const getxyHourpv = (data) => {
  return service({
    url: "/api/metric/xyHourpv",
    method: 'get',
    data
  })
}
